package com.lsa.skienna.challenge.chap8;

import java.io.ByteArrayOutputStream;

import junit.framework.TestCase;

import com.lsa.skienna.challenge.chap8.BiggerSquare.Field;
import com.lsa.skienna.challenge.chap8.BiggerSquare.ResultWriter;

public class TestBiggerSquare extends TestCase  {
	public void testSimple() throws Exception {
		ByteArrayOutputStream out = new ByteArrayOutputStream();
		
		BiggerSquare biggerSquare = new BiggerSquare();
		Field solution = biggerSquare.solve(4);
		
		ResultWriter resultWriter = new ResultWriter(out);
		resultWriter.write(solution);
		System.out.println(out.toString());
		System.out.println();
		System.out.println(solution.toString());
	}
}
